
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Client
{


    public static void main(String[] args) {
        List<Bird> bird=new ArrayList<Bird>();
        bird.add(new Piegon());
        bird.add(new Eagle());
        bird.add(new Penguin());

        while(true) {
            System.out.println("\n"+"请输入要测试的鸟：1代表鸽子，2代表老鹰，3代表企鹅");
            Scanner scanner=new Scanner(System.in);
            int i=scanner.nextInt();
            bird.get(i-1).display();
        }
    }

}
